/**
 * @filename:SwitchOrderPool 2020年07月01日
 * @project hotel-admin  V1.0
 * Copyright(c) 2020 Zhang·JZ Co. Ltd.
 * All right reserved.
 */
package hotel.switchs.oversea.api.entity.order;

import hotel.base.oversea.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;


/**
 * @Description:TODO(平台携程订单实时状态池
将携程取到所有订单存储该表
取消，下单都从该表操作 实体类)
 *
 * @version: V1.0
 * @author: Zhang·JZ
 *
 */

@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "switch_order_pool")
public class SwitchOrderPool extends BaseEntity {

	private static final long serialVersionUID = 1593764571787L;



	@ApiModelProperty(name = "dltOrderId" , value = "携程订单id ")
	private String dltOrderId;


	@ApiModelProperty(name = "md5Key" , value = "携程订单md5key 可以校验携程订单唯一值")
	private String md5Key;


	@ApiModelProperty(name = "sysOrderState" , value = "系统订单状态            0：待确认(携程订单校验通过)            1：已确认（校验通过，已下单）            2：拒绝（校验不通过）            3：完成（订单交易完成）            4：取消成功         5：取消中      6：美团取消失败        ")
	private Integer sysOrderState;


	@ApiModelProperty(name = "mtDistributorOrderId" , value = "美团分销商订单id（平台自定义id）")
	private String mtDistributorOrderId;


	@ApiModelProperty(name = "meituanOrderId" , value = "美团平台订单id")
	private String meituanOrderId;


	@ApiModelProperty(name = "mtOrderState" , value = "美团订单状态      0 待下单      10：hhb订单创建未提交 create             20：已提交预定中 booking            21：美团通知预定成功 book_suc            22：预定失败 book_fail            30：取消中 canceling            31：取消成功 cancel_suc")
	private String mtOrderState;


	@ApiModelProperty(name = "isOrder" , value = "是否可以立即向美团下单            0：否(查看对应下单前等待时长)            1：是")
	private Integer isOrder;

	@ApiModelProperty(name = "isOrderRemark" , value = "是否可以立即向美团下单备注")
	private String isOrderRemark;


	@ApiModelProperty(name = "orderWaitTime" , value = "下单前等待时长")
	private Integer orderWaitTime;


	@ApiModelProperty(name = "mtCode" , value = "下单前校验美团校验结果码0 校验成功1 校验失败2 黑名单酒店3 房态不满足预订4 三方产品不可售5 产品不存在6 产库存不足7 未获取到价格8 价格发生变化")
	private String mtCode;


	@ApiModelProperty(name = "mtDesc" , value = "校验失败原因描述")
	private String mtDesc;


	@ApiModelProperty(name = "mtPriceModels" , value = "最新价格信息列表，code=0或8时会返回")
	private String mtPriceModels;


	@ApiModelProperty(name = "mtRemainRoomNum" , value = "库存0 库存不足1～5 库存数量999 库存充足")
	private String mtRemainRoomNum;


	@ApiModelProperty(name = "orderId" , value = "订单id ")
	private String orderId;


}
